<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Textbook Crossroads - Book Administration</title>
<link rel="stylesheet" href="<%=request.getContextPath() %>/default.css" type="text/css">
</head>
<body>

<div id="header">
	<div id="logo">
		<h1>
			<html:img width="40" src="../images/EMPTY.GIF"/>
			<html:link page="/pages/home.jsp">Textbook Crossroads</html:link>
		</h1>
		<h2>Team 14 - LoneTree</h2>
	</div>
	<div id="menu">
		<ul>
			<li class="active"><html:link page="/pages/admindashboard.jsp">Dashboard</html:link></li>
			<li><html:link page="/pages/books.jsp">Books</html:link></li>
			<li><html:link page="/pages/courses.jsp">Courses</html:link></li>
			<li><html:link page="/pages/about.jsp">About</html:link></li>
			<li class="logon"><html:link action="/logout">LogOut</html:link></li> 
		</ul>
	</div>
</div>


<div id="content">
	<div id="sidebar">
			<div id="categories">
			<div id="archives" class="boxed">
				<h2>Admin Actions</h2>
				<div class="content">
					<ul>
			    		<li><html:link href="bookadmin.jsp"><bean:message
			            key="adminbook.link"/></html:link></li>
			            
			            <li><html:link action="/AdminCourses"><bean:message
			            key="admincourses.link"/></html:link></li>
			            
			            <li><html:link action="/AdminAccounts"><bean:message
			            key="adminaccounts.link"/></html:link></li>
			            
			            <li><html:link action="/AdminComments"><bean:message
			            key="admincomments.link"/></html:link></li>
					</ul>
				</div>
			</div>
		</div>
	</div>

	<div id="posts">
		<div class="post">
			<h2 class="title">Book Administration</h2>
			<div class="meta">
				<p class="date">Details:</p>
			</div>
			<div class="story">

<ol>
<li><h3>
<html:link href="../ListBooks.do" >Browse all books</html:link>
</h3></li>

<li><a href="addbook.jsp" target="_blank"><h3>Add a new book</h3></a></li>

<li>
<h3>Direct Delete</h3>
<form action="../DeleteBook.do">
If you know book ISBN, please here to delete the book directly. <br>
Otherwise, please search to find the book to be deleted<br>
<input type="text" name="isbn">
<input type="submit" value="Go">
</form>
</li>

<li>
<h3>Search book by ISBN</h3>
<form action="../SearchBook.do" method="GET">
If you know book ISBN, please here to find the book directly. <br>
Otherwise, please 
<html:link page="/pages/searchbook.jsp">search books </html:link> first to find the book to be deleted
<br><br>
<input type="text" name="isbn" size="13">
<input type="submit" value="Go">
</form>
</li> 



<li> <a href="./searchbook.jsp"><h3>Search book by keywords</h3></a></li>

<li>
<h3>Direct Update</h3>
<form action="../UpdateBook.do" method="get">
If you know book ISBN, please here to update the book directly. <br>
Otherwise, please search to find the book to be updated<br>
<input type="text" name="isbn">
<input type="submit" value="Go">
</form>

</li>

<li>
<h3>Book & Comments</h3>
To add, edit, delete book comment, please select a book first (either by search or browing book list)
</li>

<li>
<h3>Book & Sections</h3>
To add, edit, delete section books, please select a book first (either by search or browing book list)
</li>
</ol>
			</div>
		</div>
	</div>
</div>

<div id="footer">
	<p id="copy">&copy;2007 LoneTree.</p>
	<p> (Andrew Lee | Bojan Martin | Dimeji Omikunle | Minghui Yu)</p>
</div>
</body>
</html>